x86/mce: make mce barriers private to their users
authorHaozhong Zhang <haozhong.zhang@intel.com>
Wed, 31 May 2017 06:38:21 +0000 (08:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 31 May 2017 06:38:21 +0000 (08:38 +0200)
commit1403d5d9a6ca3560aa38308c437d254b0c9bc3af
treeb991b6a0c8dbf7322d4eb0dfc19337f228de697a
parent7b5cb2f18e9b98f930f78b64a0f0a3b45139aa53
x86/mce: make mce barriers private to their users

Each of current mce barriers is actually used by only one function, so
move their definitions into their users. A static mce barrier initializer
is introduced so we can move the initialization of above mce barriers
to their definitions.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/mcheck/barrier.h
xen/arch/x86/cpu/mcheck/mce.c